]> dgit.raspbian.org Git - gnome-shell.git/commit
boxpointer: Compute source allocation and work area just once
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 8 Mar 2019 20:36:23 +0000 (14:36 -0600)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 11 Apr 2019 19:38:17 +0000 (19:38 +0000)
commit244a329ee76b90c912b90f367ced166abc8d0356
treee14ff7b7860d3764a50e0667b40c8b362600bdc5
parent044572cb60aeb47a099258cd5617c8df0e7bcdbc
boxpointer: Compute source allocation and work area just once

Compute the source actor workarea and allocation when repositioning and keep it
cached so that we've not to calculating it again in _calculateArrowSide.

Since _calculateArrowSide only is called inside _updateFlip that is always
called just after reposition, we can be sure that the computed values are still
correct.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/435
js/ui/boxpointer.js